<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\GraduationEligibleStudent */

$this->title = $model->XSXM.'毕业资格审核';
$this->params['breadcrumbs'][] = ['label' => 'Graduation Eligible Students', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="graduation-eligible-student-view">
    
    <div class="panel">
		<div class="panel-heading">
            基本信息
		</div>
        <div class="panel-body">        
            <table id="t1" class="table table-bordered">
                <tr>
                    <th>学生姓名：</th>
                    <td><?= Html::encode($model->XSXM) ?></td>
                    <th>身份证号：</th>
                    <td><?= Html::encode($model->SFZHM) ?></td>
                </tr>
                <tr>
                    <th>学校名称：</th>
                    <td><?= Html::encode($model->xS->xX->ZWMC) ?></td>
                    <th>专业名称：</th>
                    <td><?= Html::encode($model->xS->bJ->zY->ZYMC) ?></td>
                </tr>
                <tr>
                    <th>学号：</th>
                    <td><?= Html::encode($model->xS->XH) ?></td>
                    <th>毕业年度：</th>
                    <td><?= Html::encode($model->bYZGSH->bYSH->BYND) ?></td>
                </tr>
            </table>
        </div>
	</div>
    
    <div class="panel">
		<div class="panel-heading">
            成绩单
		</div>
        <div class="panel-body">        
            <table id="t2" class="table table-hover table-bordered">
                <tr>
                    <th>序号</th>
                    <th>课程名称</th>
                    <th>课程类别</th>
                    <th>课程性质</th>
                    <th>学分</th>
                    <th>平时成绩</th>
                    <th>实验成绩</th>
                    <th>实践成绩</th>
                    <th>考试成绩</th>
                    <th>总成绩</th>
                </tr>
                <?php foreach($model->xS->electives as $elective){ 
                        $idx++; $kc=$elective->jXKC->kK->kC; 
                ?>
                <tr>
                    <td><?= $idx ?></td>
                    <td><?= Html::encode($kc->KCMC) ?></td>
                    <td><?= Html::encode($kc->KCLB) ?></td>
                    <td><?= Html::encode($kc->KCXZ) ?></td>
                    <td><?= Html::encode($kc->XF) ?></td>
                    <td><?= Html::encode($elective->PSCJ) ?></td>
                    <td><?= Html::encode($elective->SYCJ) ?></td>
                    <td><?= Html::encode($elective->SJCJ) ?></td>
                    <td><?= Html::encode($elective->KSCJ) ?></td>
                    <td><?= Html::encode($elective->ZCJ) ?></td>
                </tr>
                <?php } ?>
            </table>
        </div>
	</div>
    
<style>
#t1 th{
    text-align:right;
}
#t2 th,#t2 td{
    text-align:center;
}
</style>

</div>
